﻿#ifndef MYLABEL_P_H
#define MYLABEL_P_H

#include "mylabel.h"

QT_BEGIN_NAMESPACE

class MyLabelPrivate
{
public:
    MyLabelPrivate();
    ~MyLabelPrivate();

    /* ImageLayer Property */
    int imageLayerIndex;                        // ImageLayer's Index

    /* Device Property */
    int deviceIndex;                            // Device's Index

    /* ModBus Property */
    My::ObjectType objectType;                  // Declare an ObjectType variable
    int objectIndex;                            // ObjectIndex variable
    double objectData;                          // ObjectData variable

    /* Apperance Property */
    QColor borderColor;                         // Border's Color
    int borderWidth;                            // Border's Width
    int borderRadius;                           // Border's Radius
    QColor myLabelBgColor;                      // MyLabelBackGround's Color

    /* Display Property */
    bool displayEnable;                         // Declare a DisplayEnable variable
    bool displayDefault;                        // Declare a DisplayDefault variable

    /* Display Parameters */
    QString defaultText;                        // Declare a DefaultText variable
    QString textBuffer;                         // Declare a TextBuffer variable

    /* Mouse Parameters */
    bool LeftmousePressed;                      // The flag of leftmouse be pressed
    QPointF mousePressPoint;                    // The current coordinates of mouse click
};

QT_END_NAMESPACE

#endif // MYLABEL_P_H
